package serviceimp;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import service.BrandService;

import dao.BrandMapper;
import dao.UserMapper;
import entity.Brand;
import query.BrandQuery;

@Service
public class BrandServiceImp implements BrandService {

	@Resource
	private BrandMapper brandmapper;

	public void addbrand(Brand brand) {
		brandmapper.addbrand(brand);
	}

	public List<Brand> getBrandListWithPage(Brand brand) {
		return brandmapper.getBrandListWithPage(brand);
	}

	
	public List<Brand> getBrandList() {
		return brandmapper.getBrandList();
	}

	@Override
	public Integer getBrandCount(Brand brand) {
		return null;
	}

	@Override
	public void deleteBrandByKey(Integer id) {
		brandmapper.deleteBrandByKey(id);
		
	}

	@Override
	public void deleteBrandByKeys(Integer ids) {
		brandmapper.deleteBrandByKeys(ids);
		
	}

	@Override
	public void updateBrandByKey(Brand brand) {
		brandmapper.updateBrandByKey(brand);
	}

	@Override
	public List<Brand> getBrandList(BrandQuery brandQuery) {
		return brandmapper.getBrandList(brandQuery);
	}
}
